﻿<%@ Page Language="C#" MasterPageFile="~/default.master" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    Inherits="_Default" Title=".::E-Valuation System 3::.." %>

<%@ Register Src="uicontrol/THIO_DRAW.ascx" TagName="THIO_DRAW" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    &nbsp;<asp:SqlDataSource ID="FirstNewData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
        SelectCommand="SELECT * FROM [TinTuc] where info_id = @info_id">
        <SelectParameters>
            <asp:QueryStringParameter QueryStringField="new_id" Name="info_id" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:Repeater ID="FirstNew" runat="server" DataSourceID="FirstNewData">
        <ItemTemplate>
            <div class="Document">
                <div class="TopLeftCorner">
                    <div class="TopRightCorner">
                        <div class="TopCenter">
                            <span></span>
                        </div>
                    </div>
                </div>
                <div class="MiddleLeft">
                    <div class="MiddleRight">
                        <div class="MiddleDecorator">
                            <div class="OverFlowHidden">
                                <div class="DocumentIcon RightBlock">
                                    <img src='<%#Eval("info_img") %>' alt="Ảnh" />
                                </div>
                                <div class="ContentArea">
                                    <div class="Title">
                                        <%#Eval("info_title") %>
                                    </div>
                                    <div class="QuickLink">
                                        <a href="#">
                                            <%#Eval("info_intro") %>
                                        </a>
                                    </div>
                                    <div class="ShortContent">
                                        <%#Eval("info_content") %>
                                    </div>
                                    <div class="ViewMore">
                                        <a href="#"></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="BottomLeftCorner">
                    <div class="BottomRightCorner">
                        <div class="BottomCenter">
                            <span></span>
                        </div>
                    </div>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <div class="RightSide RightBlock BorderRed">
        <div class="NewArea">
            <div class="UIBar">
                <div class="BlueRight">
                    <div class="BarLeft">
                        <div class="BarRight">
                            <div class="BarMid">
                                <div class="Icon WhiteBook16x16">
                                    <span></span>
                                </div>
                                <div class="Label">
                                    Tin tức</div>
                                <div class="ClearLeft">
                                    <span></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <asp:DataList ID="NewLine" runat="server" DataKeyField="Info_id" DataSourceID="newDataTable"
                OnEditCommand="NewLine_EditCommand">
                <ItemTemplate>
                    <div class="NewLine">
                        <div class="Icon BlueBullet16x16">
                            <span></span>
                        </div>
                        <a href="default.aspx?new_id=<%#Eval("Info_id") %>" class="Label">
                            <%# Eval("Info_title")%>
                        </a>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <asp:SqlDataSource ID="newDataTable" runat="server" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                SelectCommand="SELECT top 10 [Info_id], [Info_title] FROM [TinTuc] order by info_timepost desc">
            </asp:SqlDataSource>
        </div>
    </div>
    <div class="CenterContet" style="overflow:hidden;">
        <asp:Repeater ID="SubjectTitle" runat="server" DataSourceID="subjectData">
            <ItemTemplate>
                <div class="TitleDecorator">
                    <div class="TitleLeft">
                        <div class="TitleBar">
                            <div class="Title">
                                <a href="#?sub_id=<%#Eval("madoanhnghiep")%>">
                                    <%#Eval("tendoanhnghiep")%>
                                </a>
                            </div>
                        </div>
                        <div class="MiddleLeft">
                            <div class="MiddleRight">
                                <div class="MiddleDecorator LeftBlock">
                                    <div class="OverFlowHidden">
                                        <div class="DocumentIcon RightBlock">
                                            <a href="<%#Eval("website")%>">
                                                <img src="<%#Eval("logo")%>" width="100" height="100" alt="ảnh" /></a>
                                        </div>
                                        <div class="ContentArea">
                                            <div class="ShortContent">
                                                <%#Eval("chucnang")%>
                                                <%#Eval("info")%>
                                            </div>
                                            <div class="ViewMore">
                                                <a href="#">Xem tiếp</a>>>
                                            </div>
                                        </div>
                                        <div class="ClearRight">
                                            <span></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="ClearLeft">
                                    <span></span>
                                </div>
                            </div>
                        </div>
                        <div class="BottomLeftCorner">
                            <div class="BottomRightCorner">
                                <div class="BottomCenter">
                                    <span></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <asp:SqlDataSource ID="subjectData" runat="server" ConnectionString="<%$ ConnectionStrings:evaConn %>"
            SelectCommand="select top 5 * from DoanhNghiep where status = 1"></asp:SqlDataSource>
    </div>
    <div class="ClearAll">
        <span></span>
    </div>
</asp:Content>
